<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<input type="button" value="刷新" id="btn">
<input type="button" value="跳转" id="go">
<script>
    var btn = document.getElementById("btn");
    btn.onclick = function(){
        location.reload();
    }
    var byId = document.getElementById("go");
    byId.onclick = function () {
        location.href = "http://www.baidu.com";

    }
</script>
</body>
</html>